<?php

namespace app\libs\PaypalSDK\builder;

class PrePurchaseBuilder extends PaypalBuilder
{
    public function toArray(): array
    {
        return [
            'intent'=>'CAPTURE',
            'purchase_units'=>$this->getTransactions(),
            'application_context'=>$this->get_application_context(),
        ];
    }
}